from device import DeviceBase
from .config import KarDia_info
def is_interface(name:str, device:DeviceBase) -> bool:
    points = device.find_image(KarDia_info['interface_key'][name])
    return len(points) > 0